from django.urls import path
from . import views

from framework.routers import Router
from utils.url_path import UrlPath

urlpatterns = [
    # 注册用户
    path(UrlPath.url_method('user/register/'), views.CreateUserView.as_view()),
    path('user/', views.ListUserView.as_view()),
]

router = Router()
router.register('users', views.UserModelViewSets, basename='users')
urlpatterns += router.urls
